package com.gdpa.service.impl;

import com.gdpa.entity.DistrBuilding;
import com.gdpa.entity.DistrHouse;
import com.gdpa.mapper.DistrHouseMapper;
import com.gdpa.service.IDistrHouseService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 分销房源表 服务实现类
 * </p>
 *
 * @author zsr
 * @since 2018-12-19
 */
@Service
public class DistrHouseServiceImpl extends ServiceImpl<DistrHouseMapper, DistrHouse> implements IDistrHouseService {
    @Autowired
    DistrHouseMapper houseMapper;

    @Override
    public List<DistrHouse> findAllHouse(String id) {
        return houseMapper.findAllHouse(id);
    }

    @Override
    public DistrBuilding findNowBuild(String id) {
        return houseMapper.findNowBuild(id);
    }

    @Override
    public Integer addHouse(DistrHouse house) {
        return houseMapper.addHouse(house);
    }

    @Override
    public List<DistrHouse> findHouse(DistrHouse house) {
        return houseMapper.findHouse(house);
    }

    @Override
    public Integer deleteHouse(String id) {
        return houseMapper.deleteHouse(id);
    }
}
